const baseUrl = (process.env.NODE_ENV === 'development') ? "learningCenter/": "api/learningCenter/" 
export default {
    // 获取我的课程
    getCourseList: {
        url: baseUrl + 'web/home/swagger',
        interFaceType: "api",
        headers: [{
            key: "X-Forward-School",
            value: "kuaiji"
        }]
    },
    // 获取科目 直播
    getClassPlanSchedule: {
        url: baseUrl + 'web/getLiveCourseSchedule',
        interFaceType: "api",
        headers: [{
            key: "X-Forward-School",
            value: "kuaiji"
        }]
    },
    // 获取科目 录播
    getCourseRecord: {
        url: baseUrl + 'web/getRecordCourseSchedule',
        interFaceType: "api",
        headers: [{
            key: "X-Forward-School",
            value: "kuaiji"
        }]
    },
    // 获取科目下所有的资料
    getCourseDocument: {
        url: baseUrl + 'web/getCourseDocument',
        interFaceType: "api",
        headers: [{
            key: "X-Forward-School",
            value: "kuaiji"
        }]
    },
    // 查看和下载资料添加次数接口
    downOrViewFile: {
        url: baseUrl + 'web/downOrViewFile',
        interFaceType: "api",
        postType: true,
        headers: [{
            key: "X-Forward-School",
            value: "kuaiji"
        },
        {
            key: "Content-Type",
            value: "application/json;charset=UTF-8"
        }]
    },
    // 下载文件
    downFile: {
        url: '',
        interFaceType: "api",
        down: true
    },
    // 获取我的笔记 课程(班型)列表和科目
    getNodeCourseList: {
        url: baseUrl + 'web/course/getCourseList',
        interFaceType: "api",
        headers: [{
            key: "Content-Type",
            value: "application/json"
        }]
    },
    // 根据课程，获取课次列表与笔记列表 （直播）
    queryLiveNotes: {
        url: baseUrl + 'web/teachnote/queryLiveNotes',
        interFaceType: "api",
        headers: [{
            key: "Content-Type",
            value: "application/json"
        }]
    },
    // 判断直播的状态 直播还是直播回放
    queryLiveStatus: {
        url: baseUrl + 'app/live/queryLiveStatus',
        interFaceType: "api",
        headers: [{
            key: "Content-Type",
            value: "application/json"
        }]
    },
    // 返回直播跳转的地址
    liveRoomAddress: {
        url: baseUrl + 'app/live/liveRoom',
        interFaceType: "api",
        headers: [{
            key: "Content-Type",
            value: "application/json"
        }]
    },
    // 返回直播回放跳转的地址
    replayAddress: {
        url: baseUrl + 'app/live/replay',
        interFaceType: "api",
        headers: [{
            key: "Content-Type",
            value: "application/json"
        }]
    },
    // 返回录播地址
    getAddress: {
        url: baseUrl + 'web/record/getAddress',
        interFaceType: "api",
        headers: [{
            key: "Content-Type",
            value: "application/json"
        }]
    },
    // 根据课程，获取课次列表与笔记列表 （录播）
    queryVideoNotes: {
        url: baseUrl + 'web/teachnote/queryVideoNotes',
        interFaceType: "api",
        headers: [{
            key: "Content-Type",
            value: "application/json"
        }]
    },
    // 删除笔记
    deleteNotes: {
        url: baseUrl + 'web/teachnote/delete',
        interFaceType: "api",
        headers: [{
            key: "Content-Type",
            value: "application/json"
        }]
    },
    // 新增编辑笔记
    saveOrUpdate: {
        url: baseUrl + 'web/teachnote/saveOrUpdate',
        interFaceType: "api",
        headers: [{
            key: "Content-Type",
            value: "application/json"
        }]
    },
    // 获取消息未读总数
    getNotReadMessagesCount: {
        url: baseUrl + 'web/getNotReadMessagesCount',
        interFaceType: "api",
        headers: [{
            key: "Content-Type",
            value: "application/json"
        }]
    },
    // 分页获取消息列表接口
    getUserMessage: {
        url: baseUrl + 'web/getUserMessage',
        interFaceType: "api",
        headers: [{
            key: "Content-Type",
            value: "application/json"
        }]
    },
    // 设置消息为已读接口
    setMessageReaded: {
        url: baseUrl + 'web/setMessageReaded',
        interFaceType: "api",
        postType: true,
        headers: [{
            key: "Content-Type",
            value: "application/json"
        }]
    },
    // 查看消息详情接口
    getMessageDetail: {
        url: baseUrl + 'web/getMessageDetail',
        interFaceType: "api",
        headers: [{
            key: "Content-Type",
            value: "application/json"
        }]
    },
    // pc端展示课后阅读文章/更新文章阅读数
    getTeachReading: {
        url: baseUrl + 'web/getTeachReading',
        interFaceType: "api",
        headers: [{
            key: "Content-Type",
            value: "application/json"
        }]
    },
    // pc端展示文章评论
    getTeachComment: {
        url: baseUrl + 'web/getTeachComment',
        interFaceType: "api",
        headers: [{
            key: "Content-Type",
            value: "application/json"
        }]
    },
    // pc端对评论点赞
    greatTeachComment: {
        url: baseUrl + 'web/greatTeachComment',
        interFaceType: "api",
        postType: true,
        headers: [{
            key: "Content-Type",
            value: "application/json;charset=UTF-8"
        }]
    },
    // pc端对文章进行评论
    addComment: {
        url: baseUrl + 'web/addComment',
        interFaceType: "api",
        postType: true,
        headers: [{
            key: "Content-Type",
            value: "application/json;charset=UTF-8"
        }]
    },
    // pc端对文章点赞
    greatTeachReading: {
        url: baseUrl + 'web/greatTeachReading',
        interFaceType: "api",
        postType: true,
        headers: [{
            key: "Content-Type",
            value: "application/json;charset=UTF-8"
        }]
    },









    // 获取图片上传签名
    getPhotoSign: {
        url: baseUrl + 'app/teachnote/getPhotoSign',
        interFaceType: "api",
        headers: [{
            key: "Content-Type",
            value: "application/json"
        }]
    },
    // 获取图片上传签名
    all: {
        url: '',
        interFaceType: "all"
    }
}